//
//  NetWorkTool.h
//  诚诚直播
//
//  Created by 廖易诚 on 16/7/9.
//  Copyright © 2016年 liaoyicheng. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^success)(NSURLSessionDataTask *task, id responseObject);
typedef void(^failure)(NSURLSessionDataTask *task, NSError *error);

@interface NetWorkTool : NSObject

+ (instancetype)shareTool;


- (void)getWithUrlString:(NSString *)urlString params:(NSDictionary *)dict success:(success)success failure:(failure)failure;

- (void)postWithUrlString:(NSString *)urlString params:(NSDictionary *)dict success:(success)success failure:(failure)failure;

 
@end
